'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	// const {id} = event;
	const db = uniCloud.database();
	const res = await db.collection('articles').get()
	return {
		success: Boolean(res),
		data: res
	}
};
